<head>
    <title>文章列表</title>
   
</head>
<table lay-filter="demo">

    <thead>
        <tr>
            <!-- sort:true 升序降序 -->
            <th lay-data="{field:'title'}">标题</th>
            <th lay-data="{field:'img'}">封面</th>
            <th lay-data="{field:'author'}">作者</th>
            <th lay-data="{field:'time'}">时间</th>
            <th lay-data="{field:'status'}">审核状态</th>
            <th lay-data="{field:'edit'}">编辑</th>
            <th lay-data="{field:'edit1'}">编辑</th>
            <th lay-data="{field:'edit2'}">编辑</th>
        </tr>
    </thead>


    {{each result item}}

    <tbody>

        <tr>

            <td>{{item.title}}</td>
            <td class="cover"><img src={{item.img}} alt="" class="cover"></td>
            <td>{{item.author}}</td>
            <td>{{item.time}}</td>
            <td>{{item.status}}</td>

            <td>

                <form action="cha">
                    <button name="chaid" value={{item.id}}
                        style="height: 30px;width:100%;background-color:#a8fc2a;border: 0;color: white;">查看详情</button>
                </form>
            </td>
            <td>
                <form action="gai" method="get">
                    <button name="gaiid" value={{item.id}}
                        style="height: 30px;width:100%;background-color:#1890ff;border: 0;color: white;">修改</button>
                </form>


            </td>
            <td>
                <button class="articleDelete" onclick="sss('{{item.id}}','{{item.img}}',this)"
                    style="height: 30px;width:100%;background-color:#ff6c6c;border: 0;color: white;">删除</button>
            </td>


        </tr>

    </tbody>
    {{/each}}



</table>